<template>
    <div class="file-traing-info-warp">
        <a-card title="培训信息">
            <a-table :dataSource="model.list" :columns="columns" :pagination="false"/>
        </a-card>
    </div>
</template>

<script lang='ts' setup>
    import { ref } from 'vue';
    defineOptions({
        // 培训信息
        name: 'FileTraingInfo'
    });
    const model = defineModel({
        type: Object, // 类型检查
        required: true, // 是否必填
        // 默认值
        default: {}, 
    });
    const columns = ref([
        { title: '讲师', dataIndex: 'trainUser', key: 'trainUser'},
        { title: '人数', dataIndex: 'trainNumber', key: 'trainNumber'},
        { title: '培训方式', dataIndex: 'trainWay', key: 'trainWay'},
        { title: '培训跟进人', dataIndex: 'trainingOwner', key: 'trainingOwner'},
        { title: '培训状态', dataIndex: 'trainStatus', key: 'trainStatus'},
        { title: '关闭原因', dataIndex: 'closingReason', key: 'closingReason'},
        { title: '培训日期', dataIndex: 'trainDateTime', key: 'trainDateTime'},
        { title: '培训过程记录', dataIndex: 'trainDescribe', key: 'trainDescribe'},
    ]);
</script>

<style scoped lang="less">
</style>